Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: add missing null-loader dependency #152

Merged
merged 1 commit into from
Jul 20, 2020

Conversation

JamesMcMahon
Copy link
Contributor

@JamesMcMahon JamesMcMahon commented Jan 18, 2020

Fix issue in #101

On the fresh project adding the vue add vuetify plugin results in a missing dependency:

WEBPACK  Failed to compile with 9 error(s)

Error in ./node_modules/vuetify/lib/components/VImg/VImg.js

  Module not found: 'null-loader' in '/Users/user/temp/vuetify-create-test'

Copy link
Member

@KaelWD KaelWD left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Should be in dependencies of packages/vue-cli-plugin-vuetify

@JamesMcMahon
Copy link
Contributor Author

JamesMcMahon commented Jan 18, 2020

@KaelWD I did a local build and didn't see it complain, so just to make sure I follow are you referring to the following block?

"devDependencies": {
"jest": "^24.9.0",
"vuetify-loader": "^1.2.2"
}

@kierans
Copy link

kierans commented Feb 11, 2020

Great job @JamesMcMahon tracking this down and fixing it.

I'm not sure why @KaelWD wants null-loader in the dependencies given that this issue (which I've also just had) occurs when running test:unit.

It would be great to get this merged.

@DRoet
Copy link
Contributor

DRoet commented Feb 11, 2020

This PR adds null-loader to the generated project, whilst the proper solution is to add it to packages/vue-cli-plugin-vuetify instead, since this is the package that uses it directly.

@KaelWD I did a local build and didn't see it complain, so just to make sure I follow are you referring to the following block?

"devDependencies": {
"jest": "^24.9.0",
"vuetify-loader": "^1.2.2"
}

yes that is the correct location, but I think it should be under dependencies instead of devDependencies but I could be wrong

@JamesMcMahon
Copy link
Contributor Author

Yeah I can make those changes.

The way you phrased it makes sense @DRoet. Thanks for clarifying.

Fix issue in vuetifyjs#101

On the fresh project adding the `vue add vuetify` plugin results in a missing dependency:

```
WEBPACK  Failed to compile with 9 error(s)

Error in ./node_modules/vuetify/lib/components/VImg/VImg.js

  Module not found: 'null-loader' in '/Users/jamie/temp/vuetify-create-test'
```
@JamesMcMahon
Copy link
Contributor Author

PR has been updated. I removed the dependency from ad-hoc and added to the package.json.

@JamesMcMahon
Copy link
Contributor Author

Confirmed and tested locally that this works.

Note for myself in case I need to make further changes, https://cli.vuejs.org/dev-guide/plugin-dev.html#installing-plugin-locally.

@JamesMcMahon
Copy link
Contributor Author

I am just checking in on this. I see two approvals, is there anything I need to do before this is merged?

@DRoet
Copy link
Contributor

DRoet commented Feb 17, 2020

nope, it just needs to get merged/released by someone who has the time to do it

@DRoet
Copy link
Contributor

DRoet commented Mar 14, 2020

@johnleider Do you have some time to merge this in and do a release?

@merceyz
Copy link
Contributor

merceyz commented Apr 26, 2020

Need to change the loader to use require.resolve('null-loader') otherwise we're depending on hoisting which is a terrible idea

sassRule.use('null-loader').loader('null-loader')
Should be sassRule.use('null-loader').loader(require.resolve('null-loader'))

scssRule.use('null-loader').loader('null-loader')
Should be scssRule.use('null-loader').loader(require.resolve('null-loader'))

@JamesMcMahon
Copy link
Contributor Author

JamesMcMahon commented Apr 26, 2020 via email

@dwalters18
Copy link

@KaelWD can we get this merged? :)

@DRoet
Copy link
Contributor

DRoet commented May 8, 2020

@johnleider friendly ping

@KaelWD KaelWD changed the title Add missing null-loader dependency fix: add missing null-loader dependency Jul 20, 2020
@KaelWD KaelWD merged commit 983a796 into vuetifyjs:master Jul 20, 2020
@JamesMcMahon JamesMcMahon deleted the dependency-fix branch October 22, 2022 19:10
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

6 participants